package com.team11.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author pjc
 * @since 2021-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_score")
@ApiModel(value="MScore对象", description="")
public class MScore implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "个人评分表id")
    @TableId(value = "m_id", type = IdType.AUTO)
    private Integer mId;

    @ApiModelProperty(value = "学生id")
    private Integer sid;

    @ApiModelProperty(value = "项目组id")
    @TableField("p_id")
    private Integer pId;

    @ApiModelProperty(value = "课程id")
    @TableField("kc_id")
    private Integer kcId;

    @ApiModelProperty(value = "综合得分(个人)")
    @TableField("m_score")
    private String mScore;

    @ApiModelProperty(value = "综合得分提交时间")
    @TableField("m_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime mTime;

    @ApiModelProperty(value = "综合得分评语")
    @TableField("m_content")
    private String mContent;
}
